package com.longma.server.pojo.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class YuncangAddDTO extends YuncangDTO{
    @ApiModelProperty(value = "采集器SN")
    @NotBlank(message = "采集器SN不能为空")
    private String collectorSn;

    @ApiModelProperty(value = "经度")
    @NotNull(message = "经度不能为空")
    private Double longitude;

    @ApiModelProperty(value = "纬度")
    @NotNull(message = "纬度不能为空")
    private Double latitude;
}
